﻿using AutoMapper;
using BookStore.ImgUrls;
using BookStore.Shops;
using BookStore.Users;

namespace BookStore;

public class BookStoreApplicationAutoMapperProfile : Profile
{
    public BookStoreApplicationAutoMapperProfile()
    {
        CreateMap<Shop, ShopDto>();
        CreateMap<ShopAnnexed, ShopAnnexedDto>();
        CreateMap<CreateUpdateShopDto, Shop>();
        CreateMap<QueryShopAnnexedDto, ShopAnnexed>();
        CreateMap<User, UserDto>();
        CreateMap<CreateUpdateUserDto, User>();
        CreateMap<Imgurl, ImgurlDto>();
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
    }
}
